.class public Ldgb/c1;
.super Ljava/lang/Object;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Ldgb/c1$d;,
        Ldgb/c1$e;,
        Ldgb/c1$b;,
        Ldgb/c1$a;,
        Ldgb/c1$c;
    }
.end annotation


# static fields
.field private static a:Landroid/content/Context;

.field private static b:Ljava/lang/String;

.field private static c:Ljava/lang/String;

.field private static d:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public static a()Landroid/content/Context;
    .locals 1

    .line 27
    sget-object v0, Ldgb/c1;->a:Landroid/content/Context;

    return-object v0
.end method

.method public static a(Ljava/lang/String;)Ldgb/m1;
    .locals 1

    .line 26
    invoke-static {}, Ldgb/m2;->e()Ldgb/m2;

    move-result-object v0

    invoke-virtual {v0, p0}, Ldgb/m2;->a(Ljava/lang/String;)Ldgb/m1;

    move-result-object p0

    return-object p0
.end method

.method public static a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 4

    .line 17
    invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 p0, 0x0

    return-object p0

    .line 18
    :cond_0
    invoke-static {p0}, Ldgb/t2;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 19
    invoke-static {p1}, Ldgb/c1;->a(Ljava/lang/String;)Ldgb/m1;

    move-result-object v1

    .line 20
    invoke-virtual {v1}, Ldgb/m1;->b()Z

    move-result v2

    if-eqz v2, :cond_2

    const-string v2, ".apk"

    invoke-virtual {p0, v2}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v2

    const-string v3, ".jar"

    if-nez v2, :cond_1

    invoke-virtual {p0, v3}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result p0

    if-eqz p0, :cond_2

    .line 21
    :cond_1
    new-instance p0, Ljava/lang/StringBuilder;

    invoke-direct {p0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 22
    :cond_2
    iget-object p0, v1, Ldgb/m1;->e:Ldgb/l1;

    if-nez p0, :cond_3

    const/4 p0, 0x0

    goto :goto_0

    :cond_3
    invoke-virtual {p0}, Ldgb/l1;->e()Z

    move-result p0

    .line 23
    :goto_0
    invoke-static {p0, p1}, Ldgb/j2;->a(ZLjava/lang/String;)Ljava/io/File;

    move-result-object p0

    .line 24
    new-instance p1, Ljava/io/File;

    invoke-direct {p1, p0, v0}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    .line 25
    invoke-virtual {p1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method public static a(Ldgb/c1$d;)V
    .locals 1

    if-eqz p0, :cond_2

    .line 1
    invoke-virtual {p0}, Ldgb/c1$d;->a()Z

    move-result v0

    if-nez v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    iget-boolean v0, p0, Ldgb/c1$d;->b:Z

    sput-boolean v0, Ldgb/o0;->b:Z

    .line 3
    sput-boolean v0, Ldgb/o0;->c:Z

    .line 4
    iget-object v0, p0, Ldgb/c1$d;->d:Ljava/lang/String;

    sput-object v0, Ldgb/o0;->a:Ljava/lang/String;

    .line 5
    iget-object v0, p0, Ldgb/c1$d;->a:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    sput-object v0, Ldgb/c1;->a:Landroid/content/Context;

    .line 6
    iget-object v0, p0, Ldgb/c1$d;->c:Ljava/lang/String;

    sput-object v0, Ldgb/c1;->b:Ljava/lang/String;

    .line 7
    iget-object v0, p0, Ldgb/c1$d;->e:Ljava/lang/String;

    sput-object v0, Ldgb/c1;->c:Ljava/lang/String;

    .line 8
    iget-object v0, p0, Ldgb/c1$d;->f:Ljava/lang/String;

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_1

    .line 9
    iget-object p0, p0, Ldgb/c1$d;->f:Ljava/lang/String;

    sput-object p0, Ldgb/c1;->d:Ljava/lang/String;

    .line 10
    invoke-static {}, Ldgb/j2;->a()V

    .line 11
    sget-object p0, Ldgb/c1;->a:Landroid/content/Context;

    invoke-static {p0}, Ldgb/x0;->a(Landroid/content/Context;)V

    .line 12
    sget-object p0, Ldgb/c1;->a:Landroid/content/Context;

    invoke-static {p0}, Ldgb/a2;->a(Landroid/content/Context;)V

    .line 13
    sget-object p0, Ldgb/c1;->a:Landroid/content/Context;

    const/4 v0, 0x0

    invoke-static {p0, v0}, Ldgb/q0;->a(Landroid/content/Context;[Ljava/lang/String;)V

    .line 14
    invoke-static {}, Ldgb/q1;->a()Ldgb/q1;

    return-void

    .line 15
    :cond_1
    new-instance p0, Ljava/lang/IllegalArgumentException;

    const-string v0, "mServiceUrl can not be null."

    invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p0

    :cond_2
    :goto_0
    return-void
.end method

.method public static a(Ljava/lang/String;Ldgb/c1$b;)Z
    .locals 0

    .line 16
    invoke-static {p0, p1}, Ldgb/h1;->a(Ljava/lang/String;Ldgb/c1$b;)Z

    move-result p0

    return p0
.end method

.method public static b()Ljava/lang/String;
    .locals 1

    .line 3
    sget-object v0, Ldgb/c1;->d:Ljava/lang/String;

    return-object v0
.end method

.method public static b(Ljava/lang/String;)Ljava/lang/String;
    .locals 1

    .line 1
    invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 2
    invoke-static {}, Ldgb/m2;->e()Ldgb/m2;

    move-result-object v0

    invoke-virtual {v0, p0}, Ldgb/m2;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    goto :goto_0

    :cond_0
    const/4 p0, 0x0

    :goto_0
    return-object p0
.end method
